#include <iostream>
#include <gflags/gflags.h>

DEFINE_bool(debug_bool, false, "测试");
DEFINE_string(ip, "127.0.0.1", "ip地址");
DEFINE_int32(port, 8080, "端口号");

int main(int argc, char* argv[])
{
    google::ParseCommandLineFlags(&argc, &argv, true);

    std::cout << FLAGS_ip << std::endl;
    std::cout << FLAGS_port << std::endl;
    std::cout << FLAGS_debug_bool << std::endl;

    return 0;
}
